<template>
  <div class="dashboard-container">
    <div class="dashboard-text">欢迎登陆杭州前端9期后台管理系统！！</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  created() {
    this.loadLeftMenu()
  },
  methods: {
    loadLeftMenu() {
      this.$store.dispatch('user/getLeftMenu')
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 20px;
  }
  &-text {
    font-size: 16px;
    line-height: 46px;
  }
}
</style>
